package com.jxtc.enterprise.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "Admin 端新增菜品时传递的一级菜品规格信息")
@Getter
@Setter
@ToString
public class FoodSpecificationDTO {
    @Schema(description = "一级规格类型", example = "一级规格")
    @NotBlank(message = "一级规格类型不能为空")
    private String type;

    @Schema(description = "二级规格项列表")
    @NotNull(message = "二级规格项列表不能为空")
    private List<FoodSpecificationItemDTO> items;
}
